package com.alks.pad.mapper.padCollectUser;

import com.alks.entity.data.entity.PcCollectUser2;
import com.alks.pad.data.dto.padCollectUser.PadUserDeptDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PadUserMapper {
    /*根据用户名和密码查询用户*/
    PcCollectUser2 getCollectUserAndPwd(@Param("companyId") String companyId, @Param("userName") String userName, @Param("password") String password);

    /*根据用户名id去查部门信息*/
    List<PadUserDeptDto> getDeptByCollectUser(@Param("id") int id);
}
